<?php

class Po3 extends MY_Front_Controller {
	public function __construct() {
		parent::__construct();

		$this->load->library('plati');
	}
	
	public function index() {
		$x = new plati;
		$lid = "WWW.ROYALBIJUTERII.RO";
		$ke = "40063691";
		$km = "37219243";
		
		
		$x->LoginID = $lid;
		$x->KeyEnc = $ke;
		$x->KeyMod = $km;
		
		$x->amount = "1.00";
		$x->currency = "RON";
		$x->OrderNumber = "1";
		$x->action = "2";
		$ret = $x->InsertHash_Auth();
		$data['amount'] = $x->amount;
		$data['currency'] = $x->currency;
		$data['OrderNumber'] = $x->OrderNumber;
		$data['action'] = $x->action;
		$data['LoginID'] = $x->LoginID;
		$data['ret'] = $ret;
		
		
		$this->template->write_view ( 'content', 'front/po.php', $data );
		$this->template->render ();
	}
	
}